package com.company.cloud.club.modules.utils;

import com.aliyun.oss.ClientException;
import com.aliyuncs.DefaultAcsClient;
import com.aliyuncs.profile.DefaultProfile;
import org.springframework.web.multipart.MultipartFile;

import java.io.*;
import java.util.List;

/**
 * *****************************************************************************
 * <p>
 * 功能名           ：com.qxzychina.utils
 * 系统名           ：
 * <p>
 * *****************************************************************************
 * Modification History
 * <p>
 * Date        Name                    Reason for Change
 * ----------  ----------------------  -----------------------------------------
 * 2020/8/15     zhangxu                 Created
 */
public class UploadVideoUtil {

    //账号AK信息请填写(必选)
    private static final String accessKeyId = "LTAI5tQ96CtLVbHUWXyfXsgm";

    //账号AK信息请填写(必选)
    private static final String accessKeySecret = "PPKz3yInitd5D6t20VXLejWuMmzWpj";

    /**
     * 初始化阿里云上传接口
     * @return
     * @throws ClientException
     */
    public static DefaultAcsClient getVodClient() throws ClientException {
        String regionId = "cn-shanghai";
        DefaultProfile profile = DefaultProfile.getProfile(regionId, accessKeyId, accessKeySecret);
        return new DefaultAcsClient(profile);
    }

}
